
#pragma once
#include "ColourHelper.h"



	const D3DCOLOR Colour::RED = D3DCOLOR_RGBA(255,0,0,255);
	const D3DCOLOR Colour::GREEN = D3DCOLOR_RGBA(0,255,0,255);
	const D3DCOLOR Colour::BLUE = D3DCOLOR_RGBA(0,0,255,255);
	const D3DCOLOR Colour::YELLOW = D3DCOLOR_RGBA(255,255,0,255);
	const D3DCOLOR Colour::BLACK = D3DCOLOR_RGBA(0,0,0,255);
	const D3DCOLOR Colour::WHITE = D3DCOLOR_RGBA(255,255,255,255);
	const D3DCOLOR Colour::CYAN    = D3DCOLOR_XRGB(0, 255, 255);
	const D3DCOLOR Colour::MAGENTA = D3DCOLOR_XRGB(255, 0, 255);
	const D3DCOLOR Colour::GREY = D3DCOLOR_XRGB(139,136,120);
	//const D3DCOLOR Colour::GREY = D3DCOLOR_XRGB(205, 205, 193);

	D3DCOLOR SetAlpha(D3DCOLOR &Colour, int Alpha)
	{
		//	Colour c;
		// borrowed from G.Lewis
		int r = (Colour&0x00ff0000) >> 16;
		int g = (Colour&0x0000ff00) >> 8;
		int b = (Colour&0x000000ff);
		int a = Alpha;

		return D3DCOLOR_RGBA(r,g,b,a); 
	}


